﻿using GYCTOAManagementSystemNewApi.Model.Enum.PayrollForm;
using GYCTOAManagementSystemNewApi.Model.Tool;
using System;

namespace GYCTOAManagementSystemNewApi.Model.Entity
{
    /// <summary>
    /// 表单人员信息数据
    /// </summary>
    public class FormUser:Operate
    {

        #region 冗余数据
      
        /// <summary>
        /// 单据Id
        /// </summary>
        public int FormId { get; set; }
        
        /// <summary>
        /// 项目Id（冗余字段方便统计）
        /// </summary>
        public  int ProjectId { get; set; }
        
        /// <summary> 
        /// 创建时间（冗余字段方便统计）
        /// </summary>
        public DateTime? ProjectCreateTime { get; set; }

        /// <summary>
        ///  开帐批号
        /// </summary>
        public string  SettlementNumber { get; set; }

        /// <summary>
        /// 是否开帐
        /// </summary>
        public bool Settlement  { get; set; }

        #endregion
        /// <summary>
        /// 施工类别
        /// </summary>
        public ConstructionTypeEnum ConstructionType { set; get; }


        /// <summary>
        /// 人员Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 工作内容
        /// </summary>
       public string JobContent { get; set; }
        /// <summary>
        /// 工作开始时间
        /// </summary>
        public DateTime? JobCreateTime {  get; set; } 
        /// <summary>
        /// 工作截止时间
        /// </summary>
        public DateTime? JobEndTime {  get; set; } 


        /// <summary>
        /// 天数（可能会出现1.5 不是整天的情况）
        /// </summary>
        public  decimal WorkingDays { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 总金额   天数* 价格
        /// </summary>
        public decimal? TotalPrice { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 收方工资单状态 0 待审核  1 审批通过
        /// </summary>
        public OrderStateEnum PayrollType { get; set; }

        /// <summary>
        /// 1 应发工资单 / 2 收方工资单
        /// </summary>
        public PayrollFormTypeEnum FormType { get; set; }

     
    }
}
